<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$C.webtitle}</title>
<meta content="{$C.webkeywords}" name="Keywords">
<meta name="description" content="{$C.webdescription}" />
<script src="./Public/js/jquery.js"></script>
<script src="./Public/js/common.js"></script>
<script src="./Public/js/tbox/box.js"></script>

<link href="./Public/js/tbox/box.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<div id="pcbg">
<body onload="MM_preloadImages('__PUBLIC__/img/grsyhover.jpg','__PUBLIC__/img/tdwdhover.png')">
<include file="Public:header"/>

<div id="pcmain">
  <div id="pcmainleft">
    <div id="pcmainleft1">
  <a href="{:U('grwbsy')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','__PUBLIC__/img/grsyhover.png',1)"><img src="__PUBLIC__/img/grsy.jpg" name="Image8" width="17" height="16" border="0" id="Image8" />
  个人首页</a>
  <a href="{:U('pcxx')}" class="pclb1"onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','__PUBLIC__/img/sxhover.png',1)"><img src="__PUBLIC__/img/sx.jpg" name="Image11" width="17" height="11" border="0" id="Image11"/>
  私信</a>
  <a href="{:U('tdwd')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','__PUBLIC__/img/tdwdhover.png',1)"><img src="__PUBLIC__/img/tdwd.jpg" name="Image9" width="17" height="15" border="0" id="Image9" />
  提到我的</a>
  <a href="{:U('pl')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','__PUBLIC__/img/plhover.png',1)"><img src="__PUBLIC__/img/pl.jpg" name="Image10" width="17" height="14" border="0" id="Image10"/>
  评论</a>
  <a href="{:U('sc')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','__PUBLIC__/img/schover.png',1)"><img src="__PUBLIC__/img/sc.jpg" name="Image13" width="17" height="15" border="0" id="Image13"/>
  收藏</a>
  </div><!--pcmainleft1-->
  <div id="pcmainleft2">
  <a href="{:U('grsz')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','__PUBLIC__/img/szhover.png',1)"><img src="__PUBLIC__/img/sz.jpg" name="Image12" width="17" height="19" border="0" id="Image12"/>
  个人设置</a>
  <a href="{:U('hy')}" class="pclb2"><img src="__PUBLIC__/img/hyhover.png" width="17" height="16" />
  好友</a>
  </div><!--pcmainleft2-->
  <div id="pcmainleft3">
  <a href="{:U('aqzx')}" class="pclb1" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','__PUBLIC__/img/aqzxhover.png',1)"><img src="__PUBLIC__/img/aqzx.jpg" name="Image14" width="17" height="13" border="0" id="Image14"/>
  安全中心</a>
  </div><!--pcmainleft3-->
  </div>

<style>
.daitongguohaoyoushenqingdiv{float:right;margin-right:20px;}
.daitongguohaoyoushenqingdiv a{color:#72cae5;}
</style>

  <div id="pcmainright">
    <div id="scpcmainright1">
      <div id="scpcmainright1-1">
      好友（{$haoyoushu}）
      	<php>
        	if($daihaoyoushu!=0){
        </php>
          <div class="daitongguohaoyoushenqingdiv">
          <a href="{:U('daihy')}">待通过好友申请({$daihaoyoushu})</a>
          </div>
         <php>
         	}else{
            }
         </php>
      </div>
    </div>
    <div id="pcmainright2">
    <div class="hyclassq">
    <volist name="haoyou" id="haoyou">
    <div class="hyclass">
      <div class="hyclass1"><a href="{:U('fksy',array(quid=>$haoyou[bei_id]))}"><img src="{$haoyou.touxiang}" style="width:79px;height:79px;" /></a></div>
      <div class="hyclass2"><p><a href="{:U('fksy',array(quid=>$haoyou[bei_id]))}">{$haoyou.name}</a></p><p>{$haoyou.xingbie}</p><p>{$haoyou.sheng_name}-{$haoyou.shi_name}</p></div>
      <div class="hyclass3" style="overflow:auto;">{$haoyou.gexingxuanyan|mb_substr=0,14,'UTF-8'}</div>
      <div class="hyclass4"><a href="javascript:;" onclick="del({$haoyou.id});">移除好友</a></div>
    </div>
	</volist>

    <div class="hyclassdi"></div>
    
    </div>
      <div class="clear"></div>        
      <div id="fengye" class="page" style="height:40px;">
                        {$page}
      </div>
    </div><!--pcmainright2-->
  </div>
  <div id="pcmaindi"></div>
</div>
<include file="Public:bottom"/>

</div><!--pcbg-->


<script language="javascript">

function del(kid){
kid = kid ? kid : getChecked();
kid = kid.toString();
if(kid == ''){
	ui.error('你没有选择任何选项！');
	return false;
}
if(!confirm('删除后无法恢复，确定删除？'))
	return false;

$.post("{:U('delhaoyou')}", {ids:kid}, function(v){
	if( v == 1 ){
		ui.success('删除成功！');
		location.reload("{:U('hy')}");
	}else{
		ui.error('删除失败！');
	}
});
} 
</script>

</body>
</html>